<style>
	li.sidebarfeaturedproduct img { width:100px;height:100px;margin:0px; }
</style>

<?php $sidebarproducts = new WP_Query('post_type=product&meta_key=featuredproduct&meta_value=Sidebar&posts_per_page=2'); ?>
	<?php while ($sidebarproducts->have_posts()) : $sidebarproducts->the_post(); ?>
    
    	<?php
			$featuredproductsku = get_post_custom($post->ID);
			$fprodsku = $featuredproductsku['_sku'];
			foreach ( $fprodsku as $fprodsku );

			$featuredproductlistprice = get_post_custom($post->ID);
			$fprodlistprice = $featuredproductlistprice['_regular_price'];
			foreach ( $fprodlistprice as $fprodlistprice );
			
			$featuredproductprice = get_post_custom($post->ID);
			$fprodprice = $featuredproductprice['_sale_price'];
			foreach ( $fprodprice as $fprodprice );
			
			$fprodsavings = (($fprodlistprice - $fprodprice) / $fprodlistprice);
			$showfprodsavings = $fprodsavings * 100;
		?>
    	
		<li class="sidebarfeaturedproduct" style="padding:5px;border-bottom:#cccccc 1px solid;padding-top:10px;padding-bottom:10px;">
        	<div style="width:100px;float:left;margin:0px;">
            	<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
            </div>
            <div style="width:125px;float:right;margin:0px;text-align:center;">
				<p style="margin-bottom:10px;font-size:12px;font-weight:bold;text-align:left;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p>
				<p style="margin-bottom:10px;font-size:14px;font-weight:bold;"><div class="sidebarsave" style="font-size:12px;font-weight:bold;height:30px;line-height:30px;background:#263692;color:#ffffff;">Save <?php echo round($showfprodsavings); ?>% Today!</div></p>
				<div style="width:100%;height:10px;clear:both;"></div>
                <p><a href="<?php the_permalink(); ?>" class="button">View Details</a></p>
            </div>
            <div style="width:100%;height:0px;clear:both;"></div>
		</li>
        
    <?php endwhile ?>
<?php wp_reset_postdata(); ?>